<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 1000px;
            height: 1000px;
            background-image: url(image/img11.jpg);
            background-repeat: no-repeat;
            background-color: pink;
            /* background-position: center top; */
            /* 如果指定两个值都是方位名词，这两个值前后顺序无关 */
            /* background-position: right top; */
            /* background-position: top right; */
            /* 如果只指定了一个方位名词，另外一个省略，则第二个值默认居中对齐 */
            /* background-position: left; */
            /* top是y轴的，x轴省略则是默认居中对齐 */
            background-position: top ;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>